package com.lsh.oms.core.enums;

/**
 *
 * @author xuanqun
 * @date 16/8/15
 */
public enum InterfaceEnum {
    /**
     *
     */
    OTHER(0, "", "", "", "", null, null),
    ORDER_LIST(1, "", "", "", "", null, null),
    ORDER_DETAIL(2, "", "", "", "", null, null),
    DELIVERY_LIST(3, "shipping_order_id", "shipping_order_id", "shippingIds", "/bill/shipping/getlist", TmsConfig.DELIVERY, null),
    RECEIPT_LIST(4, "receipt_order_id", "receipt_order_id", "receiptIds", "/bill/receipt/getlist", TmsConfig.RECEIPT, null),
    RETURN_LIST(5, "return_order_id", "return_order_id", "returnIds", "/bill/return/getlist", TmsConfig.RETURN, null),
    DELIVERY_DETAIL(6, "shipping_order_id", "shipping_order_id", "shipping_order_id", "/bill/shipping/view", TmsConfig.DELIVERY, true),
    RECEIPT_DETAIL(7, "receipt_order_id", "receipt_order_id", "receipt_order_id", "/bill/receipt/view", TmsConfig.RECEIPT, true),
    RETURN_DETAIL(8, "return_order_id", "return_order_id", "return_order_id", "/bill/return/view", TmsConfig.RETURN, false),
    RECEIPT_GET_INFO(9, "receipt_order_id", "order_id", "orderIds", "/bill/receipt/getinfo", TmsConfig.RECEIPT, false),
    DELIVERY_GET_INFO(10, "shipping_order_id", "order_id", "orderIds", "/bill/shipping/getinfo", TmsConfig.DELIVERY, false),
    RECEIPT_BY_DELIVERY_ID(11, "receipt_order_id", "shipping_order_id", "shipping_order_id", "/bill/shipping/viewOrder?type=1", TmsConfig.RECEIPT, true),
    RETURN_BY_DELIVERY_ID(12, "return_order_id", "shipping_order_id", "shipping_order_id", "/bill/shipping/viewOrder?type=2", TmsConfig.RETURN, true),
    DELIVERY_GET_DETAIL(13, "shipping_order_id", "shipping_order_id", "shippingIds", "/bill/shipping/getdetail", TmsConfig.DELIVERY, false),
    DELIVERY_GET_RECEIPT_INFO(14, "receipt_order_id", "shipping_order_id", "shippingIds", "/bill/shipping/getreceiptinfo", TmsConfig.RECEIPT, false),
    RELATE_ORDERS(15, "", "", "order_id", "/bill/return/getrelateorder", null, null),
    RETURN_HEAD_ORDER(16, "return_order_id", "order_id", "orderIds", "/bill/return/gethead", TmsConfig.RETURN, null),
    RETURN_DETAIL_ORDER(17, "return_order_id", "order_id", "orderIds", "/bill/return/getdetail", TmsConfig.RETURN, false),
    RETURN_HEAD_DELIVERY(18, "return_order_id", "shipping_order_id", "shippingIds", "/bill/return/gethead", TmsConfig.RETURN, null),
    RETURN_DETAIL_DELIVERY(19, "return_order_id", "shipping_order_id", "shippingIds", "/bill/return/getdetail", TmsConfig.RETURN, false),
    RECEIPT_DETAILS(20, null, null, null, null, null, null),
    RECEIPT_DETAIL_INFO(21, null, null, null, null, null, null),
    AFTER_SALE_RO_ORDER(22, "return_order_id", "", "order_id", "/bill/return/getAfsReturnOrder", null, false),
    RECEIPT_DETAIL_2(23, "receipt_order_id", "receipt_order_id", "receipt_order_id", "/bill/receipt/view", TmsConfig.RECEIPT, true);


    private final int index;
    private final String codeColumn;
    private final String selectColumn;
    private final String param;
    private final String url;
    private final TmsConfig tmsConfig;
    private final Boolean isAssembly;

    InterfaceEnum(int index, String codeColumn, String selectColumn, String param, String url, TmsConfig tmsConfig, Boolean isAssembly) {
        this.index = index;
        this.codeColumn = codeColumn;
        this.selectColumn = selectColumn;
        this.param = param;
        this.url = url;
        this.tmsConfig = tmsConfig;
        this.isAssembly = isAssembly;
    }

    public int getIndex() {
        return index;
    }

    public String getCodeColumn() {
        return codeColumn;
    }

    public String getSelectColumn() {
        return selectColumn;
    }

    public String getParam() {
        return param;
    }

    public String getUrl() {
        return url;
    }

    public TmsConfig getTmsConfig() {
        return tmsConfig;
    }

    public Boolean getAssembly() {
        return isAssembly;
    }
}
